#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class TRGroup : Business.BusinessBase<TRGroup, int>
	{
		#region Fields and Properties

		private DateTime buildDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime BuildDate
		{
			get { return buildDate; }
			set
			{
				if (value != buildDate)
				{
					MarkChanged("BuildDate");
					buildDate = value;
				}
			}
		}

		private DateTime addDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime AddDate
		{
			get { return addDate; }
			set
			{
				if (value != addDate)
				{
					MarkChanged("AddDate");
					addDate = value;
				}
			}
		}

		private String trGoupName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TrGoupName
		{
			get { return trGoupName; }
			set
			{
				if (value != trGoupName)
				{
					MarkChanged("TrGoupName");
					trGoupName = value;
				}
			}
		}

		private String trGroupCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TrGroupCode
		{
			get { return trGroupCode; }
			set
			{
				if (value != trGroupCode)
				{
					MarkChanged("TrGroupCode");
					trGroupCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public TRGroup()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override TRGroup DataSelect(int id)
		{
			return Services.DALService.TRGroupService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.TRGroupService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.TRGroupService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.TRGroupService.Delete(this);
		}

		#endregion Base overrides
	}
}
